import request from '@/utils/request'

// 查询万寿宫-红包获取明细列表
export function listHbmx(query) {
  return request({
    url: '/wsg/hbmx/list',
    method: 'get',
    params: query
  })
}

// 查询万寿宫-福卡红包获取明细列表
export function listFkHbmx(query) {
  return request({
    url: '/wsg/hbmx/fkList',
    method: 'get',
    params: query
  })
}

// 查询万寿宫-福卡红包获取统计
export function statisticsFkHb(query) {
  return request({
    url: '/wsg/hbmx/statisticsHb',
    method: 'get',
    params: query
  })
}

// 查询万寿宫-红包获取明细详细
export function getHbmx(id) {
  return request({
    url: '/wsg/hbmx/' + id,
    method: 'get'
  })
}

// 新增万寿宫-红包获取明细
export function addHbmx(data) {
  return request({
    url: '/wsg/hbmx',
    method: 'post',
    data: data
  })
}

// 修改万寿宫-红包获取明细
export function updateHbmx(data) {
  return request({
    url: '/wsg/hbmx',
    method: 'put',
    data: data
  })
}

// 删除万寿宫-红包获取明细
export function delHbmx(id) {
  return request({
    url: '/wsg/hbmx/' + id,
    method: 'delete'
  })
}

// 导出万寿宫-红包获取明细
export function exportHbmx(query) {
  return request({
    url: '/wsg/hbmx/export',
    method: 'get',
    params: query
  })
}

// 查询万寿宫-答题红包获取列表
export function dthbmxList(query) {
  return request({
    url: '/wsg/hbmx/dthbmxList',
    method: 'get',
    params: query
  })
}

// 查询万寿宫-福卡红包获取统计
export function statisticsDtHb(query) {
  return request({
    url: '/wsg/hbmx/statisticsHb',
    method: 'get',
    params: query
  })
}

// 查询万寿宫-福卡红包获取统计
export function dthbmxViewList(query) {
  return request({
    url: '/wsg/hbmx/dthbmxViewList',
    method: 'get',
    params: query
  })
}


// 查询万寿宫-抽取999元红包
export function luckDraw() {
  return request({
    url: '/wsg/hbmx/luckDraw',
    method: 'get'
  })
}


export function repairData() {
  return request({
    url: '/wsg/hbmx/repairData',
    method: 'get'
  })
}

export function repairPriceData(price) {
  return request({
    url: '/wsg/hbmx/repairPriceData?price='+price,
    method: 'get',
  })
}

export function repairUserBalance() {
  return request({
    url: '/wsg/hbmx/repairUserBalance',
    method: 'get'
  })
}
